package com.itheima.util;

import java.util.List;

//分页查询的JavaBean
public class PageUtil<T> {
    // 总记录数
    private int total;
    // 当前页数据
    private List<T> rows;

    public PageUtil(int totalCount, List<T> rows){
        this.rows = rows;
        this.total = totalCount;
    }

    public int getTotalCount() {
        return total;
    }

    public void setTotalCount(int totalCount) {
        this.total = totalCount;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
